package com.ruoyi.repayment.mapper;

import com.bt.san.domain.Benjin;
import com.bt.san.domain.suchrates;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BenjinMapper {
    @Insert(value = "insert into loan_benjin (ments,principal,interests,figure,months,zprice,interestCount,applyforId,userId) value(#{ments},#{principal},#{interests},#{figure},#{months},#{zprice},#{interestCount},#{applyforId},#{userId})")
    void insertintos(Benjin benjin);
    @Select(value = "select * from loan_benjin where applyforId=#{id} and userId=#{userId}")
    List<Benjin> benjinxq(@Param("id") Integer id, @Param("userId") Integer userId);

    @Select(value = "select * from loan_benjin where id=#{id}")
    Benjin findsuchratesId(Long id);
}
